#!/bin/bash
# $1 is the filename
# test line

echo 'bdffjhdfkhd'

URL=ftp.geekawhat.com
username=geeka813
password=crazyalian\!2001
blank=''

if [ -n "$2" ] 
then
   blank="cd $2"
   echo "blank is $2"
else
   echo 'dest directory notset'
fi

#exit 1

ftp -n $URL <<END_SCRIPT
 quote USER $username
 quote PASS $password

 $blank

 put $1
 quit
 END_SCRIPT

